package com.andova.component.config;

import java.util.Set;

/**
 * Created by Administrator on 2018-08-16.
 *
 * @author kzaxil
 * @since 0.0.2
 */
public class ConfigBean extends ValueBean {
    /**
     * 节点名称
     */
    public String node;
    /**
     * 节点别名
     */
    public String nodeAlias;

    public ConfigBean(String node, String value) {
        this(node, null, value, null, null);
    }

    public ConfigBean(String node, String nodeAlias, String value) {
        this(node, nodeAlias, value, null, null);
    }

    public ConfigBean(String node, String nodeAlias, String value, String valueAlias) {
        this(node, nodeAlias, value, valueAlias, null);
    }

    public ConfigBean(String node, String value, Set<Value> alternative) {
        this(node, null, value, null, alternative);
    }

    public ConfigBean(String node, String nodeAlias, String value, String valueAlias, Set<Value> alternative) {
        super(value, valueAlias, alternative);
        this.node = node;
        this.nodeAlias = nodeAlias;
    }
}
